import React, { Component } from 'react'

export default class shuru extends Component {
    state = {
      value:''
  }  
  clear(){
      this.setState({
          value:''
      })
  }
  render() {
    let {label, type} = this.props
  return (
    <div>
      <label>{label}</label>
      <input type={type} value={this.state.value} onChange={(evt)=>{
          this.setState({
              value:evt.target.value
          })
      }}></input>
    </div>
  )
  }
}
